﻿using System;

namespace IDEAMS.model
{
    public class RoasterRecordViewModel : ViewModelBase
    {
        public RoasterRecordViewModel() { }

        public RoasterRecordViewModel(RoasterRecord roasterRecord)
        {
            serialNo = roasterRecord.serialNo;
            type = roasterRecord.type;
            channelNum = roasterRecord.channelNum;
            dateTime = roasterRecord.dateTime;
        }

        private string m_serialNo;
        public string serialNo
        {
            get { return m_serialNo; }
            set
            {
                m_serialNo = value;
                NotifyPropertyChanged();
            }
        }

        private string m_type;
        public string type
        {
            get { return m_type; }
            set
            {
                m_type = value;
                NotifyPropertyChanged();
            }
        }

        private int m_channelNum;
        public int channelNum
        {
            get { return m_channelNum; }
            set
            {
                m_channelNum = value;
                NotifyPropertyChanged();
            }
        }

        private DateTime m_dateTime;
        public DateTime dateTime
        {
            get { return m_dateTime; }
            set
            {
                m_dateTime = value;
                NotifyPropertyChanged();
            }
        }
    }
}
